(function (w) {
	var domain=document.querySelector('#init').getAttribute("src").split('@#@')[1];
  var url = domain+'/newsapp/dist/index.html';
  // var url = 'http://kydev.oss-cn-beijing.aliyuncs.com/newsapp/dist/index.html';
  var wn=null;
  // H5 plus事件处理
  function plusReady(){
    // 预载网络页面
    plus.webview.prefetchURL(url);
    wn=plus.webview.create(url,'index');
    wn.onloaded=wnLoaded;
    wn.onerror=wnError;
    wn.show('none');
  }
  function wnLoaded(e){
  	plus.navigator.closeSplashscreen();
  }
  function wnError(e){
  	wn.loadURL(url);
  }
  if(window.plus){
    plusReady();
  }else{
    document.addEventListener('plusready', plusReady, false);
  }
})(window);
